<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'bg-image-form',
	'enableAjaxValidation'=>false,
  'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); ?>

	<p class="note">带 <span class="required">*</span> 必添.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'img_name'); ?>
		<p class="hint">图片要求为1000px*200px, PNG格式</p>
		<?php echo $form->fileField($model,'img_name'); ?>
		<?php echo $form->error($model,'img_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'status_id'); ?>
		<?php echo $form->dropDownList($model,'status_id', StatusType::model()->getStatusTypeList()); ?>
		<?php echo $form->error($model,'status_id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->